<script lang="ts" setup>
import LayoutDefault from './layout/default/index.vue'
import LayoutHead from './layout/head/index.vue'
import Config from "@/config";

const layout: Ref<any> = ref({
  default: LayoutDefault,
  head: LayoutHead,
})
</script>

<template>
  <lay-watermark v-if="Config.showWatermark" :content="Config.watermark.text" element-box="#app"
                 :rotate="Config.watermark.rotate">
    <component :is="layout[Config.layout]"></component>
  </lay-watermark>
  <component v-else :is="layout[Config.layout]"></component>
</template>
